from cases_ui.data_processing.config_data.config import *
""" 查询规则列表 """
query_condition_00 = {
    "input.不匹配规则名称": {
        "testId":"processing-custom-1001",
        "value" : "不匹配规则名称"
        },
    "button_click.查询": {
        "testId": "processing-custom-1008",
    },
    "get_list_data.规则名称列表": {
        "testId":"processing-custom-2001-t0",
        }
}
query_condition_01 = {
    "input.规则名称": {
        "testId":"processing-custom-1001",
        "value" : "test"
        },
    "button_click.查询": {
        "testId": "processing-custom-1008",
    },
    "get_list_data.规则名称列表": {
        "testId":"processing-custom-2001-t0",
        }
}
query_condition_02 = {
    "pull_checkbox.规则类型": {
        "testId":"processing-custom-1002",
        "li_lsit": ['processing-custom-1002-op-0']
        },
    "button_click.查询": {
        "testId": "processing-custom-1008",
    },
    "get_list_data.规则类型列表": {
        "testId":"processing-custom-2001-t2",
        }
}
query_condition_03 = {
    "pull_checkbox.处理阶段": {
        "testId":"processing-custom-1003",
        "li_lsit": ['processing-custom-1003-op-1']
        },
    "button_click.查询": {
        "testId": "processing-custom-1008",
    },
    "get_list_data.处理阶段列表": {
        "testId":"processing-custom-2001-t5",
        }
}
query_condition_04 = {
    "pull_cascade.数据渠道": {
        "testId":"processing-custom-1004",
        "title_lsit": ['小红书>checked']
        },
    "button_click.查询": {
        "testId": "processing-custom-1008",
    },
    "get_list_data.数据渠道列表": {
        "testId":"processing-custom-2001-t4",
        }
}
query_condition_05 = {
    "pull_checkbox.内容格式": {
        "testId":"processing-custom-1005",
        "li_lsit": ['processing-custom-1005-op-0']
        },
    "button_click.查询": {
        "testId": "processing-custom-1008",
    },
    "get_list_data.内容格式列表": {
        "testId":"processing-custom-2001-t3",
        }
}
query_condition_06 = {
    "pull_checkbox.启用状态": {
        "testId":"processing-custom-1006",
        "li_lsit": ['processing-custom-1006-op-2']
        },
    "button_click.查询": {
        "testId": "processing-custom-1008",
    },
    "get_list_data.数据渠道列表": {
        "testId":"processing-custom-2001-t10",
        }
}

""" 测试自定义规则组合查询 """
group_query = {
    "input.规则名称": {
        "testId": "processing-custom-1001",
        "value": "test1"
    },
    "pull_checkbox.规则类型": {
        "testId": "processing-custom-1002",
        "li_lsit": ['processing-custom-1002-op-0']
    },
    "pull_checkbox.处理阶段": {
        "testId":"processing-custom-1003",
        "li_lsit": ['processing-custom-1003-op-1']
        },
    "pull_cascade.数据渠道": {
        "testId": "processing-custom-1004",
        "title_lsit": ['小红书>checked']
    },
    "pull_checkbox.内容格式": {
        "testId": "processing-custom-1005",
        "li_lsit": ['processing-custom-1005-op-0']
    },
    "pull_checkbox.启用状态": {
        "testId": "processing-custom-1006",
        "li_lsit": ['processing-custom-1006-op-2']
    },
    "button_click.查询": {
        "testId": "processing-custom-1008",
    },
    "get_list_data.数据渠道列表": {
        "testId": "processing-custom-2001-t0",
    }
}
group_list = [{ "input.规则名称": {
        "testId": "processing-custom-1001",
        "value": "test"
    }},{"pull_checkbox.规则类型": {
        "testId": "processing-custom-1002",
        "li_lsit": ['processing-custom-1002-op-1','processing-custom-1002-op-2']
    }},{"pull_checkbox.内容格式": {
        "testId": "processing-custom-1005",
        "li_lsit": ['processing-custom-1005-op-1','processing-custom-1005-op-0']
    }},{"pull_checkbox.启用状态": {
        "testId": "processing-custom-1006",
        "li_lsit": ['processing-custom-1006-op-1', 'processing-custom-1006-op-0']
    }},{"pull_checkbox.启用状态": {
        "testId": "processing-custom-1006",
        "li_lsit": ['processing-custom-1006-op-2']
    }},{"pull_checkbox.规则类型": {
        "testId": "processing-custom-1002",
        "li_lsit": ['processing-custom-1002-op-2', 'processing-custom-1002-op-0']
    }},{"pull_checkbox.处理阶段": {
        "testId":"processing-custom-1003",
        "li_lsit": ['processing-custom-1003-op-0', 'processing-custom-1003-op-1']
        }}]

""" 不同条件组合创建规则 """
from tool_class.tools import generate_custom_string, generate_random_string, generate_random_string_b
edit = CUSTOM_RULE['edit']
action = CUSTOM_RULE['action']
edit2 = CUSTOM_RULE_2['edit']
action2 = CUSTOM_RULE['action_b']
case_list = [
    {
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['原文片段']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['!=']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit['测试资源']],
            "权重": [edit['权重'], edit['A']],
            }
        },
    "multiple_field_edit.其余字段": {
        "field_value":{
            "规则名称":[edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '过滤'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            "条件限制": [edit['条件限制'], "满足任意条件(OR)"]
            }
        }
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '修改'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            "条件限制": [edit['条件限制'], "满足任意条件(OR)"]
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['原文片段']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['包含']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit['测试资源']],
            "权重": [edit['权重'], edit['A']],
            "动作_字段": [action['字段'], action['车系名称']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "测试数据"],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '修改'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['原文片段']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['包含']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit['测试资源']],
            "权重": [edit['权重'], edit['A']],
            "动作_字段": [action['字段'], action['品牌名称']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['资源组']],
            "动作_条件详情": [action['条件详情'], action["测试资源"]],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '补充'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['用车场景']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['==']],
            "条件类型": [edit['条件类型'], edit['条件类型_值']],
            "条件详情": [edit['条件详情'], "座椅"],
            "权重": [edit['权重'], edit['C']],
            "动作_字段": [action['字段'], action['用车场景']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "座椅1"],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '补充'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['用车场景']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['包含']],
            "条件类型": [edit['条件类型'], edit['正则表达式']],
            "条件详情": [edit['条件详情'], "https?:\/\/(?:www\.)?[^\s/$.?#].[^\s]*"],
            "权重": [edit['权重'], edit['D']],
            "动作_字段": [action['字段'], action['用车场景']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['正则表达式']],
            "动作_条件详情": [action['条件详情'], "https?:\/\/(?:www\.)?[^\s/$.?#].[^\s]*"],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '补充'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['用车场景']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['!=']],
            "条件类型": [edit['条件类型'], edit['条件类型_值']],
            "条件详情": [edit['条件详情'], "https?:\/\/(?:www\.)?[^\s/$.?#].[^\s]*"],
            "权重": [edit['权重'], edit['B']],
            "动作_字段": [action['字段'], action['用车场景']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "https?:\/\/(?:www\.)?[^\s/$.?#].[^\s]*"],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '补充'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['用车场景']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['不包含']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit["测试资源"]],
            "权重": [edit['权重'], edit['B']],
            "动作_字段": [action['字段'], action['用车场景']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "https?:\/\/(?:www\.)?[^\s/$.?#].[^\s]*"],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '修改'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            "新增动作": "sql-2-9007",
            "新增条件": "sql-1-9007",
            "刪除条件": "sql-1-9006-1",
            "刪除动作": "sql-2-9006-1",
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['用车场景']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['不包含']],
            "条件类型": [edit['条件类型'], edit['正则表达式']],
            "条件详情": [edit['条件详情'], "https?:\/\/(?:www\.)?[^\s/$.?#].[^\s]*"],
            "权重": [edit['权重'], edit['B']],
            "动作_字段": [action['字段'], action['用车场景']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "testtest"],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '修改'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['用车场景']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['为空']],
            "权重": [edit['权重'], edit['B']],
            "动作_字段": [action['字段'], action['用车场景']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "testtest"],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '补充'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['用车场景']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['不为空']],
            "权重": [edit['权重'], edit['B']],
            "动作_字段": [action['字段'], action['用车场景']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "testtest"],
            },
        },
    },
    {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '修改'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            "新增动作": "sql-2-9007",
            "新增条件": "sql-1-9007",
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['用车场景']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['不包含']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit["测试资源"]],
            "权重": [edit['权重'], edit['B']],
            "动作_字段": [action['字段'], action['用车场景']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "https?:\/\/(?:www\.)?[^\s/$.?#].[^\s]*"],
            },
        },
    "multiple_pull.条件限制和执行操作2": {
        "condition":{
            "字段":[edit2['字段'], edit2['用车场景']],
            "变量值": [edit2['变量值'], edit2['变量值_值']],
            "逻辑运算符": [edit2['逻辑运算'], edit2['不包含']],
            "条件类型": [edit2['条件类型'], edit2['条件类型_值']],
            "条件详情": [edit2['条件详情'], "test"],
            "动作_字段": [action2['字段'], action2['车系名称']],
            "动作_变量值": [action2['变量值'], action2['变量值_值']],
            "动作_逻辑运算符": [action2['逻辑运算'], action2['==']],
            "动作_条件类型": [action2['条件类型'], action2['条件类型_值']],
            "动作_条件详情": [action2['条件详情'], "https?:\/\/(?:www\.)?[^\s/$.?#].[^\s]*"],
            },
        },
    },
]

""" 验证字段长度 """
text_list = [
    {"input.规则名称": {
    "testId":edit['规则名称'],
    "value" : generate_random_string_b(51)
    }},
    {"input.规则描述": {
        "testId":edit['规则描述'],
        "value" : generate_random_string(201)
    }},
]

""" 验证字段是否必填 """
text_list_02 = [
    {"Validation":"规则名称必填",
     "handle":
    {
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['原文片段']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['!=']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit['测试资源']],
            }
        },
    "multiple_field_edit.其余字段": {
        "field_value":{
            # "规则名称":[edit['规则名称'], generate_custom_string()],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            }
        }
    }
    },
    {"Validation": "数据渠道必填",
     "handle":
         {
             "multiple_pull.条件限制和执行操作": {
                 "condition": {
                     "字段": [edit['字段'], edit['原文片段']],
                     "变量值": [edit['变量值'], edit['变量值_值']],
                     "逻辑运算符": [edit['逻辑运算'], edit['!=']],
                     "条件类型": [edit['条件类型'], edit['资源组']],
                     "条件详情": [edit['条件详情'], edit['测试资源']],
                 }
             },
             "multiple_field_edit.其余字段": {
                 "field_value": {
                     "规则名称":[edit['规则名称'], generate_custom_string()],
                 }
             }
         }
     },
    {"Validation": "配置项必填",
    "handle":
        { "multiple_field_edit.其余字段": {
                     "field_value": {
                        "规则名称":[edit['规则名称'], generate_custom_string()],
                        "数据渠道": [edit['数据渠道'], ['小红书>checked']],

                     }
                 }
             }
         },
    {"Validation": "配置项必填",
     "handle":
         {
             "multiple_pull.条件限制和执行操作": {
                 "condition": {
                     "字段": [edit['字段'], edit['原文片段']],
                     "变量值": [edit['变量值'], edit['变量值_值']],
                     "逻辑运算符": [edit['逻辑运算'], edit['!=']],
                     "条件类型": [edit['条件类型'], edit['资源组']],
                     "条件详情": [edit['条件详情'], edit['测试资源']],
                 }
             },
             "multiple_field_edit.其余字段": {
                 "field_value": {
                     "规则名称": [edit['规则名称'], generate_custom_string()],
                     "规则类型": [edit['规则类型'], '修改'],
                     "数据渠道": [edit['数据渠道'], ['小红书>checked']],
                 }
             }
         }
     },
]

""" 验证复制操作是否正常 """
copy_obj = {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '修改'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            "条件限制": [edit['条件限制'], "满足任意条件(OR)"]
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['原文片段']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['包含']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit['测试资源']],
            "权重": [edit['权重'], edit['A']],
            "动作_字段": [action['字段'], action['车系名称']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "测试数据"],
            },
        },
    }

""" 验证校验页面是否正常 """
Verify_obj = {
    "multiple_field_edit.其余字段": {
        "field_value": {
            "规则名称": [edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '修改'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            "条件限制": [edit['条件限制'], "满足任意条件(OR)"]
            }
        },
    "multiple_pull.条件限制和执行操作": {
        "condition":{
            "字段":[edit['字段'], edit['原文片段']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['包含']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit['测试资源']],
            "权重": [edit['权重'], edit['A']],
            "动作_字段": [action['字段'], action['车系名称']],
            "动作_变量值": [action['变量值'], action['变量值_值']],
            "动作_逻辑运算符": [action['逻辑运算'], action['==']],
            "动作_条件类型": [action['条件类型'], action['条件类型_值']],
            "动作_条件详情": [action['条件详情'], "测试数据"],
            },
        },
    }

""" 验证不同时间不同规则是否可以检验 """
Verify_list = [
    {
    "rule":
        {
        "multiple_field_edit.其余字段": {
            "field_value": {
                "条件限制": ["processing-4004", "满足任意条件(OR)"],
                "新增条件": "sql-1-9007",
                }
            },
        "multiple_pull.条件限制和执行操作": {
            "condition":{
                "字段":[edit['字段'], edit['用车场景']],
                "变量值": [edit['变量值'], edit['变量值_值']],
                "逻辑运算符": [edit['逻辑运算'], edit['不包含']],
                "条件类型": [edit['条件类型'], edit['资源组']],
                "条件详情": [edit['条件详情'], edit["测试资源"]],
                },
            },
        "multiple_pull.条件限制和执行操作2": {
            "condition":{
                "字段":[edit2['字段'], edit2['原文片段']],
                "变量值": [edit2['变量值'], edit2['变量值_值']],
                "逻辑运算符": [edit2['逻辑运算'], edit2['包含']],
                "条件类型": [edit2['条件类型'], edit2['条件类型_值']],
                "条件详情": [edit2['条件详情'], "test"],
                },
            },
        },
    "date":
        {
            "testId": "processing-4001",
            "start_time": "2022-01-12",
            "end_time": "2024-01-12"
        }
    },
    {
        "rule":
        {
        "multiple_field_edit.其余字段": {
            "field_value": {
                "新增条件": "sql-1-9007",
                "条件限制": ["processing-4004", "满足全部条件(AND)"],
                }
            },
        "multiple_pull.条件限制和执行操作": {
            "condition":{
                "字段":[edit['字段'], edit['用车场景']],
                "变量值": [edit['变量值'], edit['变量值_值']],
                "逻辑运算符": [edit['逻辑运算'], edit['为空']],
                },
            },
        "multiple_pull.条件限制和执行操作2": {
            "condition":{
                "字段":[edit2['字段'], edit2['原文片段']],
                "变量值": [edit2['变量值'], edit2['变量值_值']],
                "逻辑运算符": [edit2['逻辑运算'], edit2['不为空']],
                },
            },
        },
    "date":
        {
            "testId": "processing-4001",
            "start_time": "2021-01-12",
            "end_time": "2023-01-12"
        }
    }
]

# Verify_date = [
#     {
#         "testId":"processing-4001",
#         "start_time":"2022-01-12",
#         "end_time":"2024-01-12"
#     },
#     {
#         "testId": "processing-4001",
#         "start_time": "2021-01-12",
#         "end_time": "2023-01-12"
#     },
# ]